<template>
  <div>
    <router-link to="/one" tag="button">One</router-link>
    <router-link to="/two" tag="button">Two</router-link>
    
    <transition name="yang">
    <router-view></router-view>
    </transition>
  </div>
  
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      isShow:true,
    }
  },
  }
  
</script>

<style scoped>
.box{
  width: 100px;
  height: 100px;
  background: red;
}

.yang-enter,
.yang-leave-to{
  opacity: 0;
}


.yang-enter-active{
  transition: all 2s linear;
}

.yang-leave-active{
  transition: all 2s linear;
  position: absolute;
}
</style>
